package com.withyou.design_pattern.strategyPatteren;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class StrategyContent<T,V> {

	private IStrategy<T,V> strategy;//持有的算法对象

	public V excute(T t){
		return strategy.excute(t);
	}
}
